﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Portal/Master/Portal.Master" AutoEventWireup="true" CodeBehind="EmailFindTwo.aspx.cs" Inherits="Besture.UI.Portal.FindUserPwd.EmailFindTwo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="/Resource/css/normalize.css"/>
    <link rel="stylesheet" href="/Resource/css/common.css"/>
    <link rel="stylesheet" href="/Resource/css/base.css"/>
    <link href="/Resource/css/index.css" rel="stylesheet" />  
    <style>
        .submitbtn {
            background-color: #b10b4b;
            color: #fff !important;
            border: none;
            padding: 8px 40px;
            border-radius: 3px;
            font-size: 14px;
        }
                                                           
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="main">
            <div class="findpwd-page"> 
                <div class="tab1 clearfix" target=".findbox">
                     <a href="/Portal/FindUserPwd/EmailFindOne.aspx" class="email active">邮箱找回</a>
                     <a href="/Portal/FindUserPwd/FindUserPwdList1.aspx" class="phone">手机找回</a>
                </div>
                <div class="findbox">
                    <!--邮箱找回-->
                    <div class="email-tip">
                        <p>
                            设置新密码的链接已发送至您的邮箱<b runat="server" id="email">592******24@qq.com</b>
                        </p>
                        <p>
                           请在24小时内登录邮箱，按邮件中的指示完成新密码设置操作
                        </p>
                        <p>
                           如果没有收到邮件，请点击<a href="javascript:void(0)" class="SendEmail">重新发送</a>
                        </p>
                    </div> 
                </div>
            </div>
        </div> 
      <script type="text/javascript">
          var t;
          var Send = true;
          function sendemail() {
              if (Send) {
               <%--   $.ajax({
                      async: true,
                      type: "GET",
                      url: "/User/Utils/ajax.aspx?type=emailfindpass&email=<%=hidEmail.Value %>",
                    success: function (msg) {
                        t = setInterval(timer, 1000);
                        Send = false;

                    }
                });--%>
            }
        }

        $(".SendEmail").click(function () {
            sendemail();
        });

        //邮箱验证时间计时
        var sumSecond = 59;
        var scrollTimer = 0;
        function timer() {
            if (sumSecond <= 0) {
                $(".SendEmail").text("重新发送");
                clearInterval(t);
                sumSecond = 59;
                scrollTimer = 0;
                Send = true;
                return 0;
            }
            if (scrollTimer > 0) {

                $(".SendEmail").text(scrollTimer + 1 + "分钟后重发");
            }
            else {
                $(".SendEmail").text(sumSecond + "秒后重发");
            }
            sumSecond -= 1;
            if (sumSecond / 60 == scrollTimer) {
                scrollTimer -= 1;
            }
        }
    </script>
</asp:Content>
